package org.rqb.entry;

import lombok.Data;

@Data
public class MyEvent {
    private int x; //鼠标x轴
    private int y; // 鼠标 y轴
    private int vkCode; // 键盘输入值
    private EventType type; //执行操作
    private long timeStamp; //间隔时间




    public MyEvent(int x, int y, EventType type, long timeStamp) {
        this.x = x;
        this.y = y;
        this.type = type;
        this.timeStamp = timeStamp;
    }


    public MyEvent(int vkCode, EventType type, long timeStamp) {
        this.vkCode = vkCode;
        this.type = type;
        this.timeStamp = timeStamp;
    }

    public enum EventType {
        LEFT_MOUSE_DOWN,
        LEFT_MOUSE_UP,
        RIGHT_MOUSE_DOWN,
        RIGHT_MOUSE_UP,
        MOUSE_MOVE,
        KEYUP,
        KEYDOWN,
        MOUSE_WHEEL_UP,
        MOUSE_WHEEL_DOWN

    }




}
